
package org.xteam.pascal.parser.ast;

import org.xteam.parser.runtime.Span;

public class VariableParameter extends Parameter {
	
	public org.xteam.parser.runtime.reflect.AstNodeType getNodeType() {
		return PascalAstPackage.INSTANCE.getVariableParameterType();
	}
	
	protected VarFlag flag;
	protected org.xteam.parser.runtime.AstList<Identifier> names;
	protected Type type;
	
	public VariableParameter(Span span, VarFlag flag,org.xteam.parser.runtime.AstList<Identifier> names,Type type) {
		super(span);
		this.flag = flag;
		this.names = names;
		this.type = type;
	}
	
	
	public VarFlag getFlag() {
		return flag;
	}
	
	public void setFlag(VarFlag flag) {
		this.flag = flag;
	}
	
	public org.xteam.parser.runtime.AstList<Identifier> getNames() {
		return names;
	}
	
	public void setNames(org.xteam.parser.runtime.AstList<Identifier> names) {
		this.names = names;
	}
	
	public Type getType() {
		return type;
	}
	
	public void setType(Type type) {
		this.type = type;
	}
	

	public void visit(IPascalVisitor visitor) {
		visitor.visitVariableParameter(this);
	}
}
